/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package data;

/**
 *
 * @author Liesbeth
 */
public class SpelScore {
    private Score score;
    private String nickname;
    private int positie;
    
    public SpelScore(){}
    
    public SpelScore(String nickname, Score s, int pos){
        this.score = s;
        this.nickname = nickname;
        this.positie = pos;
    }

    public Score getScore() {
        return score;
    }

    public void setScore(Score score) {
        this.score = score;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
    
    public String convertToXML(){    
        return "<spelscore>" +
                    "<nickname>"+getNickname()+"</nickname>" +
                    "<topscorepositie>"+getPositie()+"</topscorepositie>"
                    + getScore().convertToXML()+
                 "</spelscore>";
    }

    public int getPositie() {
        return positie;
    }

    public void setPositie(int positie) {
        this.positie = positie;
    }
}
